import AlibabaManager from './platforms/alibaba'
import ShopeeManager from './platforms/shopee'
import { ShopeeOrderManager } from './platforms/shopee-order'
import ShopeexManager from './platforms/shopeex'
import CommonHelper from './utils/common.helper'

CommonHelper.log('start work!!')

switch (location.hostname) {
  case 'detail.1688.com':
    new AlibabaManager().init()
    break
  case 'my.xiapibuy.com':
    new ShopeeManager().init()
    break
  case 'seller.my.shopee.cn':
    new ShopeeOrderManager().init()
    break
  default:
    if (location.hostname.endsWith('.shopeex.cn')) {
      new ShopeexManager().init()
    }
}
